package cn.kgc.fcm.dsbank.controller;

import cn.kgc.fcm.dsbank.dto.ResultDTO;
import cn.kgc.fcm.dsbank.entity.Syslog;
import cn.kgc.fcm.dsbank.service.SyslogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
@RequestMapping("/syslog")
public class SysLogController {


    @Autowired
    private SyslogService syslogService;

    @RequestMapping("/show_syslog")
    public String showSyslog(Model model){

        ResultDTO<List<Syslog>> listResultDTO = syslogService.selectSyslogByCondition(null, null);

        model.addAttribute("result",listResultDTO);

        return "/syslog/show_syslog";
    }
}
